package com.hero.take.entity.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hero.take.util.DateTimeFormat;
import lombok.Data;

import java.util.Date;

@Data
public class BaseVo {

    public BaseVo(){

    }

    public BaseVo(BasePo data){
        this.id = data.getId();
        this.delFlag = data.getDelFlag();
        this.delTime = data.getDelTime();
        this.delUser = data.getDelUser();
        this.createTime = data.getCreateTime();
        this.createUser = data.getCreateUser();
        this.updateTime = data.getUpdateTime();
        this.updateUser = data.getUpdateUser();
    }

    //主键ID
    private Integer id;

    //删除标识，0-正常，1-已删除
    private Integer delFlag;

    //删除时间
    @JsonFormat(pattern = DateTimeFormat.yyyyMMddHHmmss, timezone = "GMT+8")
    private Date delTime;

    //删除人
    private String delUser;

    //创建时间
    @JsonFormat(pattern = DateTimeFormat.yyyyMMddHHmmss, timezone = "GMT+8")
    private Date createTime;

    //创建人
    private String createUser;

    //更新时间
    @JsonFormat(pattern = DateTimeFormat.yyyyMMddHHmmss, timezone = "GMT+8")
    private Date updateTime;

    //更新人
    private String updateUser;
}
